{"ast":null,"code":"var raf = function raf(callback) {\n  return +setTimeout(callback, 16);\n};\nvar caf = function caf(num) {\n  return clearTimeout(num);\n};\nif (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {\n  raf = function raf(callback) {\n    return window.requestAnimationFrame(callback);\n  };\n  caf = function caf(handle) {\n    return window.cancelAnimationFrame(handle);\n  };\n}\nvar rafUUID = 0;\nvar rafIds = new Map();\nfunction cleanup(id) {\n  rafIds.delete(id);\n}\nvar wrapperRaf = function wrapperRaf(callback) {\n  var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n  rafUUID += 1;\n  var id = rafUUID;\n  function callRef(leftTimes) {\n    if (leftTimes === 0) {\n      // Clean up\n      cleanup(id);\n      // Trigger\n      callback();\n    } else {\n      // Next raf\n      var realId = raf(function () {\n        callRef(leftTimes - 1);\n      });\n      // Bind real raf id\n      rafIds.set(id, realId);\n    }\n  }\n  callRef(times);\n  return id;\n};\nwrapperRaf.cancel = function (id) {\n  var realId = rafIds.get(id);\n  cleanup(realId);\n  return caf(realId);\n};\nexport default wrapperRaf;","map":{"version":3,"names":["raf","callback","setTimeout","caf","num","clearTimeout","window","requestAnimationFrame","handle","cancelAnimationFrame","rafUUID","rafIds","Map","cleanup","id","delete","wrapperRaf","times","arguments","length","undefined","callRef","leftTimes","realId","set","cancel","get"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/rc-util/es/raf.js"],"sourcesContent":["var raf = function raf(callback) {\n  return +setTimeout(callback, 16);\n};\nvar caf = function caf(num) {\n  return clearTimeout(num);\n};\nif (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {\n  raf = function raf(callback) {\n    return window.requestAnimationFrame(callback);\n  };\n  caf = function caf(handle) {\n    return window.cancelAnimationFrame(handle);\n  };\n}\nvar rafUUID = 0;\nvar rafIds = new Map();\nfunction cleanup(id) {\n  rafIds.delete(id);\n}\nvar wrapperRaf = function wrapperRaf(callback) {\n  var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n  rafUUID += 1;\n  var id = rafUUID;\n  function callRef(leftTimes) {\n    if (leftTimes === 0) {\n      // Clean up\n      cleanup(id);\n      // Trigger\n      callback();\n    } else {\n      // Next raf\n      var realId = raf(function () {\n        callRef(leftTimes - 1);\n      });\n      // Bind real raf id\n      rafIds.set(id, realId);\n    }\n  }\n  callRef(times);\n  return id;\n};\nwrapperRaf.cancel = function (id) {\n  var realId = rafIds.get(id);\n  cleanup(realId);\n  return caf(realId);\n};\nexport default wrapperRaf;"],"mappings":"AAAA,IAAIA,GAAG,GAAG,SAASA,GAAG,CAACC,QAAQ,EAAE;EAC/B,OAAO,CAACC,UAAU,CAACD,QAAQ,EAAE,EAAE,CAAC;AAClC,CAAC;AACD,IAAIE,GAAG,GAAG,SAASA,GAAG,CAACC,GAAG,EAAE;EAC1B,OAAOC,YAAY,CAACD,GAAG,CAAC;AAC1B,CAAC;AACD,IAAI,OAAOE,MAAM,KAAK,WAAW,IAAI,uBAAuB,IAAIA,MAAM,EAAE;EACtEN,GAAG,GAAG,SAASA,GAAG,CAACC,QAAQ,EAAE;IAC3B,OAAOK,MAAM,CAACC,qBAAqB,CAACN,QAAQ,CAAC;EAC/C,CAAC;EACDE,GAAG,GAAG,SAASA,GAAG,CAACK,MAAM,EAAE;IACzB,OAAOF,MAAM,CAACG,oBAAoB,CAACD,MAAM,CAAC;EAC5C,CAAC;AACH;AACA,IAAIE,OAAO,GAAG,CAAC;AACf,IAAIC,MAAM,GAAG,IAAIC,GAAG,EAAE;AACtB,SAASC,OAAO,CAACC,EAAE,EAAE;EACnBH,MAAM,CAACI,MAAM,CAACD,EAAE,CAAC;AACnB;AACA,IAAIE,UAAU,GAAG,SAASA,UAAU,CAACf,QAAQ,EAAE;EAC7C,IAAIgB,KAAK,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAKE,SAAS,GAAGF,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;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